/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assignment2.softwareprincipals.lsp.violate.model;

/**
 *
 * @author Matthew
 */
public class RentHouse extends NewHouse {
  public int newPeople;

    public int getNewPeople() {
        return newPeople;
    }

    public void setNewPeople(int newPeople) {
        this.newPeople = newPeople;
    }

    public RentHouse() {
    }

    

    public RentHouse(int people,boolean paid) {
        super(people,paid);
    }
  
    @Override
    public boolean notOccupied(){
        if((people>newPeople) && (paid==true))
            return true;
        else
            return false;
    }
}
